﻿using System.Runtime.InteropServices;

namespace ExcelAddInStudy
{
	[ComVisible(true), ClassInterface(ClassInterfaceType.None)]
	public class AutomationServiceFactory : IAutomationServiceFactory
	{
        /*
        Sub RaiseAddinEvent()
            Dim service
            Dim vbaEvent
            
            Set service = Application.COMAddIns.Item("ExcelAddInStudy").Object
            Set vbaEvent = service.Create("")
            vbaEvent.Raise ("Thanks")
        End Sub
         * */
		public object Create(string objectId)
		{
			return new VbaEvents();
		}
	}
}
